package stack

import "jvmgo/ch07/instructions/base"
import "jvmgo/ch07/rtda"

// 操作数栈中的值（占一个位置int float）出栈
type POP struct {
    base.NoOperandsInstruction
}

func (self *POP) Execute(frame *rtda.Frame) {
    stack := frame.OperandStack()
    stack.PopSlot()
}

// 操作数栈中的值（占两个位置long double）出栈
type POP2 struct {
    base.NoOperandsInstruction
}

func (self *POP2) Execute(frame *rtda.Frame) {
    stack := frame.OperandStack()
    stack.PopSlot()
    stack.PopSlot()
}
